import yagmail,logging


import logging

def set_log():
    logging.basicConfig(filename='com.kongfuzi.txt',filemode='+w',level=logging.DEBUG,format='')
def send_mail(self,filename):

    mail = yagmail.SMTP(user='774877770@qq.com',password='fjvmkwjdijkfbajg',host='smtp,kongfuzi')
    mail.send(to='1522057104@qq.com',subject='孔夫子测试报告',contents='孔夫子的性能测试报告',attachments='')
